#ifndef FIRSTPAGE_H
#define FIRSTPAGE_H

#include <QMainWindow>
#include "mainwindow.h"
#include "gamerulepage.h"

namespace Ui {
class FirstPage;
}

class FirstPage : public QMainWindow
{
    Q_OBJECT

public:
    explicit FirstPage(QWidget *parent = 0);
    ~FirstPage();

    //重写绘图事件
    void paintEvent(QPaintEvent *event);


    //创建图片控制的开始按钮的新页面
    MainWindow * gameMainWindow = nullptr;

    //创建图片控制的查看规则按钮的新页面
    GameRulePage * gameRuleCheck = nullptr;

    //返回按钮
    GameRulePage * gameRuleCheckBack = nullptr;

private:
    Ui::FirstPage *ui;
};

#endif // FIRSTPAGE_H
